package com.ocean.dao.library;

import com.ocean.entity.library.Announcement;
import com.ocean.entity.library.Book;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Project：SchoolManage
 * Package：com.ocean.dao.library
 * Author:zy
 * Time:2023/3/3
 */

public interface AnnouncementDao {

    /**
     * 新增公告
     * @param
     * @return
     */
    int insert(Announcement announcement);

    /**
     * 查询所有图书
     * @return
     */
    List<Announcement> selectAllByCondition(@Param("title")String title, @Param("content") String content);

    int delete(int id);
    /**
     * 修改*/
    int update(Announcement announcement);

}
